<script>
	import {
		mapState,
		mapMutations
	} from 'vuex'
	export default {
		computed: {
			...mapState(['hasLogin'])
		},
		methods: {
			...mapMutations(['login']),
		},
		onLaunch: function() {
			if(uni.getStorageSync('openid')) {
				this.login();
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	page {
		width: 100%;
		height:100%;
		background-color: #f2f2f2;
	}
</style>
